package com.xzsoft.gdwz.common;

import java.util.Timer;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.stereotype.Controller;

@Controller
public class ScheduledTaskInf implements ServletContextListener {
	Timer timer = new Timer() ; 
	@Override
	public void contextDestroyed(ServletContextEvent sce) {

	}

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		System.out.println("***************************************");
		ScheduledTask st = new ScheduledTask();
		st.scheduale();
	}

}
